<script>
var i = 10;
while(i>=0){
  if(i%2==0){
  document.write(i+"<br />");
}
  i=i-2;
}
</script>














